#coding=utf-8
###django version 1.0
from django.contrib.sitemaps import Sitemap
from lvproject.jj97.models import *

class NewsSitemap(Sitemap):
    changefreq = "never"
    priority = 0.5
    
    def items(self):
        return SiteNews.objects.all();
    
    def lastmod(self, obj):
        return obj.createdate
    

class FailedSitemap(Sitemap):
    changefreq = 'never';
    priority = 0.2
    
    def items(self):
        return CrawalFailedUrl.objects.all();
    
    def lastmod(self,obj):
        return obj.failedtimestamp;
    

